home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / ANSIshellƒ / Cooperative MultiTasking Notes < prev    next >
Encoding:
Text File  |  1995-01-17  |  900 b   |  28 lines  |  [TEXT/MPCC]

  1. Cooperative MultiTasking Notes
  2. 17Jan95 e
  3.  
  4. Cases:
  5.   foreground processing
  6.   background processing
  7.   foreground waiting for user
  8.   background waiting for user
  9.   foreground waiting for user or internal timer (*)
  10.   background waiting for user or internal timer (*)
  11.  
  12. TicksBetweenEventChecks - a constant  6
  13. gWaitTicksBG            -  variable: 20
  14. gWaitTicksFG            -  variable:  1
  15.  
  16. An estimate is made
  17.  of the number of trips around the interpreter loop
  18.  between calls to MAYBE_EVENTCHK()
  19.  
  20. gMaxSleep = GetCaretTime();    /* user may change it using desk accessory */
  21. applies when in the foreground
  22.  
  23. If ReadHangsP then within a read(stdin)
  24.   each call to os_console_read_nohang which returns no chars
  25.     doubles the gWaitTicksXG until a maximum (256 X) is reached
  26.  
  27. * Applications which use an interval timer or other timing mechanism not
  28. integrated with the Finder will have to adjust these mechanisms.